
<?php

    class CommentModel extends Model {

        // 自动验证设置
        protected $_validate = array(
            array('comment_content','check_length','主体内容不得少于20字符',0,'callback'),
            array('comment_content','require','内容必须！'), 

        ); 
         protected $_auto	 =	 array(

            array('comment_content','stripslashes',1,'function'),
            array('comment_content','htmlspecialchars',1,'function'),
        );

    }

?>